﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _300Report.Global
{
    class RequestUrl
    {
        /// <summary>
        /// 获取角色url
        /// </summary>
        /// <param name="roleName"></param>
        /// <returns></returns>
        public  static string  GetRole(string roleName)
        {
            return @"http://300report.jumpw.com/api/getrole?name=" + roleName;
        }

        /// <summary>
        ///获取角色战斗力url
        /// </summary>
        /// <param name="roleName"></param>
        /// <returns></returns>
        public static string GetRoleEffectiveness(string roleName)
        {
            return @"http://bbs.300hero.net/300z.php?name=" + roleName;
        }


        /// <summary>
        ///  获取最新的战斗列表  
        ///   http://300report.jumpw.com/api/getlist?name=张三 
        /// </summary>
        /// <param name="roleName">召唤师名称(utf8编码)</param>
        /// <param name="index">列表索引值(默认为0)</param>
        /// <param name="pageNum"></param>
        /// <returns></returns>
        public static string GetRoleList(string roleName,int pageNum)
        {
            return @"http://300report.jumpw.com/api/getlist?name=" + roleName + "&index=" + (pageNum-1)*10;
        }
         public static string GetReportImg(string path)
        {
            return @"http://300report.jumpw.com/static/images/" + path;
        }
       
        /// <summary>
        ///获取比赛详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
             public static string GetRoleMatch(int id)
        {
            return @"http://300report.jumpw.com/api/getmatch?id=" + id;
        }
    
    }
}
